//
//  CustomCell.m
//  LocomotiveGuards
//
//  Created by zwj on 15-12-8.
//  Copyright (c) 2015年 REDOOR. All rights reserved.
//

#import "CustomCell.h"

@implementation CustomCell
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.contentView.backgroundColor = [UIColor colorWithRed:247.f/255.f green:248.f/255.f blue:248.f/255.f alpha:1.0f];
        _shopLabel = [[UILabel alloc] initWithFrame:CGRectMake(110*W, 5*H, 200*W, 26*H)];
        _shopLabel.font = [UIFont boldSystemFontOfSize:16];
        _shopLabel.textColor = [UIColor grayColor];
        [self.contentView addSubview:_shopLabel];
        
        _addressLabel = [[UILabel alloc] initWithFrame:CGRectMake(110*W, 31*H, 200*W, 17*H)];
        _addressLabel.font = [UIFont systemFontOfSize:13];
        _addressLabel.textColor = [UIColor grayColor];
        [self.contentView addSubview:_addressLabel];
        
        _phoneLabel = [[UILabel alloc] initWithFrame:CGRectMake(110*W, 48*H, 200*W, 17*H)];
        _phoneLabel.font = [UIFont systemFontOfSize:13];
        _phoneLabel.textColor = [UIColor grayColor];
        [self.contentView addSubview:_phoneLabel];
        
        _leftImageView = [[UIImageView alloc] initWithFrame:CGRectMake(20*W, 5*H, 80*W, 60*H)];
        [self.contentView addSubview:_leftImageView];
        
        _separatorLine = [[UILabel alloc] initWithFrame:CGRectMake(0, 69*H, SCREEN_WIDTH, 1)];
        [self.contentView addSubview:_separatorLine];
    }
    return self;
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
